They can both be correct with the proper capitalization and punctuation. When the subject is last, the clauses need to be separated by a comma.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
av abhishiekHe just reached the village, when the sun was setting.It's possible. These are more natural:iIs this correct?