Sonnet 18 ("Shall I compare thee to a summer's day?") was likely composed between 1592 and 1598, during Shakespeare's early sonnet sequence. It appears in the 1609 quarto. The exact date is unknown, but stylistic evidence places it among the earlier sonnets.
The 1590s were Shakespeare's narrative poem and sonnet period—Venus and Adonis (1593), The Rape of Lucrece (1594), and the sonnet sequence circulating in manuscript before print. Sonnet 18's confidence and clarity suggest a poet hitting his stride.