Two fights, technically. You take on Ganondorf first, and the true finale is Ganon — the beast he becomes once the castle starts collapsing around you.