The sonnet opening with "Shall I compare thee to a summer's day?" is Sonnet 18 in Shakespeare's 1609 quarto sequence of 154 sonnets.