Heat olive oil in a heavy-bottomed skillet over medium heat. Stir in the onion; cook and stir until the onion has softened and turned translucent, about 5 minutes. Reduce heat to medium-low, and continue to cook and stir until the onion is very tender and dark brown, 15 to 20 minutes more. Remove the onion from the skillet.