In Baldur's Gate 3, your character gains experience points (XP) by completing quests, defeating enemies, and exploring the world. As you earn XP, your character levels up, allowing you to choose new abilities, spells, and skills. This progression system allows you to tailor your character's development according to your preferred playstyle.