MELBOURNE, Australia — There has been a car industry in Australia for about as long as there have been cars. But within two or three years, the last of the continent’s auto plants will go dark.

At the turn of the 20th century, while visionaries in the United States and Europe labored on horseless carriages, Australians were also creating them. In 1896 in Melbourne, Herbert Thomson built a steam car for sale using Dunlop pneumatic tires made in Australia. In 1901, Harley Tarrant began selling cars made mostly from Australian parts.

Over the next century, American automakers including General Motors, Ford and Chrysler came to dominate the market, turning out cars from factories set up in nearly every Australian state. Toyota, Nissan and Mitsubishi later joined them.

But the end is nigh. Auto plants have been closing, one by one, over five decades. The three remaining carmakers here — Toyota, Ford and the Holden subsidiary of G.M. — are shutting their manufacturing operations over the next few years.