Remove excess moisture from the tofu and mash it finely.
Add salt, pepper, lemon juice, sugar, and vinegar to the mashed tofu and mix well.
Gradually add olive oil while stirring until the mixture thickens.
Transfer the finished tofu mayonnaise to a container for storage.