Your turn structure goes: Beginning Phase → First Main Phase → Combat Phase → Second Main Phase → Ending Phase. During your First Main Phase, you have priority while the stack is empty and no other phase or step is active, which is exactly the condition required to cast sorcery-speed spells (CR 307.1).
Declaring attackers doesn't happen until the Declare Attackers Step, which is inside the Combat Phase — a phase that hasn't begun yet during your First Main Phase. You must actively move to combat (by passing priority with an empty stack), so until you do, you're free to cast sorceries, play lands, and activate sorcery-speed abilities (CR 505.1, 508.1).
The rule for sorcery timing (CR 307.1) states a sorcery can be cast 'only during your main phase when the stack is empty and you have priority.' All three conditions are met during your First Main Phase before combat begins.
Example: You control no creatures. On your turn, during your First Main Phase, you cast Cultivate (a sorcery) to ramp up. It resolves. You then choose to move to your Combat Phase. Only then do you reach the Declare Attackers Step — your sorcery was cast perfectly legally before any of that happened.
One important note: once you've moved to the Combat Phase (even before attackers are declared), you can no longer cast sorcery-speed spells unless an effect specifically allows it. The transition to combat is what closes the window, not the declaration of attackers itself (CR 505.1).
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.