In a medium bowl, mash the avocados with a fork to your desired consistency.
Add lime juice and salt, mixing to combine.
Stir in onion, cilantro, tomatoes, and garlic.
Add cayenne pepper if using, and mix gently.
Serve immediately, or cover tightly and refrigerate for up to 24 hours.