In a large pot or a deep skillet with a tight fitting lid, heat the olive oil over medium heat. Once hot, add the onions and peppers and cook until the onions begin to soften, about 3-5 minutes. Add the garlic and cook for another minute or so, stirring often, until fragrant.