Probably from Arabic الْمَحَار (al-maḥār). Compare Portuguese amêijoa.
Practice speaking and memorizing "almeja" and many other words and sentences in Spanish.