Questions & Answers about Antes de entrar em casa, eu tiro os sapatos.
After antes meaning before, Portuguese normally uses de before an infinitive.
So the pattern is:
antes de + infinitive
That is why you get antes de entrar = before entering.
Without de, the sentence would sound wrong.
Because after antes de, Portuguese often uses the infinitive, especially when the subject is the same as in the main clause.
In this sentence, the person who enters the house is also the person who takes off the shoes, so entrar stays in the infinitive.
If you want to make the subject explicit, Portuguese can also use other structures, such as:
antes de eu entrar em casa
or
antes que eu entre em casa
But in your sentence, antes de entrar em casa is the most straightforward and natural structure.