Listening to Bach’s BWV 846 Prelude No.1 in C Major, one may conclude that the foundation of this solo piano work sounds close to Ave Maria.
Charles Gounod composed Ave Maria in 1859 during the romantic era, based on J.S. Bach’s Preludium No.1 in C Major from Well-Tempered Clavier Book I (BWV 846). However, Ave Maria is written in F major, not C major.
Many consider Bach the greatest composer of all time. Bach’s use of counterpoint is innovative and the complexities of his compositions (including religious and numerological symbols) keeps on amazing musicians today.
An interesting biography of J.S. Bach can be found here.