Cut the tofu into bite-sized pieces.
Dice the tomatoes into cubes.
Finely chop the onion and garlic.
Heat olive oil in a pan and sauté the garlic and onion.
Add the tomatoes and season with salt and pepper.
Add the tofu and cook briefly.
Transfer the mixture to an oven-safe dish and top with cheese.
Bake in a 200°C oven for 10-15 minutes.