How do I connect two switches with two lights?
Note that colors here are the usual colors for US cables. If you are in another country, colors may vary. In addition, if you are using conduit then you can use different colors (but still use white for neutral):

Everything everywhere gets ground (green or bare). All grounds are connected, never switched, so ignored for this description.


From circuit breaker, black (hot) and white (neutral)
Switch 1:


Black from circuit breaker to one screw on switch
Other screw on the switch gets a short black pigtail
Pigtail connects to two black wires
White from circuit breaker gets connected to two white wires

Light 1 gets a black (switched hot) and white (neutral) pair coming from switch 1
Switch 2 gets a black (switched hot) and white (neutral) pair coming from switch 1. The black goes to one screw. Another black for the 2nd light goes to the other screw. The white wires (one from switch 1, one for the 2nd light) are connected together.
Light 2 gets the black (double-switched hot) and white (neutral) coming from switch 2.