Combat Rules

Initiative

Source
XPHB

At the start of combat, every participant rolls Initiative by making a Dexterity check, which determines their place in the turn order.

The DM ranks combatants from the highest Initiative roll to the lowest. On your turn, you can move and take one action, plus a Bonus Action and Reaction if either is available.

If combatants tie for Initiative, the DM decides the order among them, or the tied combatants can each roll again to break the tie.