Thomas Edison focused on inventing an inexpensive and safe electric light bulb to replace gas lighting in 1878. After many experiments with different filament materials like platinum, he returned to using a carbon filament. The first carbon filament bulb lasted over 13 hours. Edison continued improving the design and was granted a patent for an electric lamp using a carbon filament in 1880. A few months later, Edison's team discovered that a carbonized bamboo filament could last over 1,200 hours, helping make the light bulb practical for widespread commercial use.