Slice the onions thinly.
Heat olive oil in a pan over medium heat.
Add the onions and a pinch of salt, then sauté.
When onions turn translucent, reduce to low heat and cook slowly for 40-60 minutes.
Once they turn brown and smell sweet, turn off the heat and let them cool.