Gustave Flaubert wrote Madame Bovary to explore themes of romance primarily. The protagonist, Emma, is obsessed with romance and seduction but has difficulty translating that into love or meaningful relationships.