Rivera was known for his monumental murals that often depicted scenes from Mexican history and culture. Sunsets could have been featured in these works as a symbolic element, representing the end of a day, the cycle of life, or the beauty of the natural world.
If you can provide more context or details about the "sunset" painting you're interested in, I might be able to help you find more information about it.