Cut tofu and tomato into bite-sized pieces.
Heat olive oil in a pan and sauté onion and garlic.
Add tomato, season with salt and pepper, and make a sauce.
Layer tofu and tomato sauce in a heat-resistant dish.
Top with cheese and bake in a preheated oven at 180°C for 15 minutes.