It indicates a dependent clause: " when the weather was beautiful" can't a complete sentence, while " The last time I went to Florida was in May" is an independent clause, which can be. A complex sentence can be separated by a comma, though it doesn't have to be. If it is a long sentence, a comma is preferred.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.