A 70-year-old Spanish man handed himself in to police in Torremolinos on Saturday after admitting to having killed his flatmate with a hammer days earlier following an argument between the pair.
National Police officers arrested the man while others went to the scene to confirm if what he was saying was true.
On arrival at Plaza Río Aguasvivas, they found the body of his flatmate, 77, also Spanish.
The assailant was remanded in custody as the autopsy took place on Monday. A judge then decided on Wednesday that he should be sent to prison as he awaits trial.