Yes, you can cast sorcery-speed spells during your first main phase before attackers are declared. Your turn structure goes: Beginning Phase → First Main Phase → Combat Phase → Second Main Phase → Ending Phase. The First Main Phase (also called Precombat Main Phase) is a main phase where sorcery-speed spells are fully legal to cast.
According to CR 307.1, sorcery spells can be cast any time you have priority during a main phase of your turn, provided the stack is empty. During your First Main Phase, both conditions are met: it is your turn, and it is a main phase. You haven't entered combat yet, so attackers have not been declared.
Declaring attackers only happens after you move from the First Main Phase into the Combat Phase, specifically at the Beginning of Combat step (CR 507) and then the Declare Attackers step (CR 508). You choose when to transition from your main phase to combat by passing priority until the game moves forward — until that transition happens, you remain in your main phase.
Concrete example: You control a 3/3 creature and cast Cultivate (a sorcery) during your First Main Phase to ramp up your mana. After it resolves, you can then proceed to your Combat Phase and declare that creature as an attacker. This is completely legal.
This is also why sequencing matters strategically — many players cast spells like pump sorceries or removal before attacking so they can still use those spells that turn.
Unofficial fan resource — not affiliated with or endorsed by Wizards of the Coast. Answers are AI-generated estimates grounded in the Comprehensive Rules and are not a substitute for an official judge. Verify anything match-critical.