How Did Hans Christian Oersted Discover Aluminum?

Oersted conducted an experiment in which he reacted aluminum chloride with a potassium amalgam alloy of potassium and mercury, producing a sample of aluminum which was of limited purity by reducing pressure and raising heat on the resulting aluminum amalgam. Although Oersted is the first scientist recorded as having produced aluminum, the element was theorized well before his time and experiments.