Add olive oil to a sauté pan and place over medium heat.
Add mushrooms and red onion to the sauté pan. Cook for about 10 minutes, stirring occasionally. The mushrooms will release their moisture and become soft and also the onions will become soft and sweet.
Once most of the moisture is cooked out of the mushrooms, add the garlic and sauté for 30 more seconds until fragrant.