Danish natural philosopher Hans Christian Oersted uncovered the manner in which a magnet is affected by the flow of electric current, paving the way for later discoveries by Ampère and Faraday and the eventual creation of electrical machines that would directly affect society.