Dragons are one of the standout units in LEGO Battles, and unlocking one is all about building up the right structures.
To get a dragon, you'll need to construct a farm, a barracks, and a special factory. Once those are up, tap the red build brick and then select the dragon.
If you're playing as the wizards instead, the equivalent setup is a graveyard, a mausoleum, and a cauldron.
And if you meant using a dragon in Free Play mode, you'll first need to unlock and purchase the wizard's dragon. Either way, a fire-breathing companion is well within reach!