Inherited from Old Spanish logar, from Latin locālem.
Practice speaking and memorizing "logar" and many other words and sentences in Spanish.