Yudhishthira lost his kingdom in a game of dice with Shakuni.
Read about the game of dice here https://erenow.net/common/the-mahabharata-a-modern-rendering-vol-1/85.php