The parish of Valeyrac was first mentioned in 1317. Since the Middle Ages, it has been part of the archpriesthood of Lesparre.
Unfortunately, nothing remains of the original parish today, as the commune had a new church built in 1850. Paul Abadie, the architect in charge of the project, submitted plans, estimates and specifications for a neo-Romanesque church. His name is mentioned on the altar of the Virgin. The work was then monitored and supervised by Jean Hosteing, an architect from the Médoc. The work was completed in 1858 and the fittings in 1892 with the installation of the bell.