Place tofu on a chopping board and place a heavy object on it to squeeze out the liquid. You can also carefully squeeze it out by hand.
In the meantime, coarsely chop all the herbs, peel and press the garlic cloves.
Cut the tofu into pieces and place in a preserving jar with the herbs and garlic. Fill the glass to the top with olive oil, close and put in the fridge overnight.