Breakdown of Quelqu'un frappe à la porte, mais il n'y a personne.
mais
but
il y a
there is / there are
ne
not (used before the verb)
à
at / to / in (general locations) / about (what one thinks about / reacts to)
Questions & Answers about Quelqu'un frappe à la porte, mais il n'y a personne.
Why is there no pas in il n'y a personne?
Are quelqu'un and personne direct opposites in French?
Why is it à la porte instead of sur la porte for knocking on the door?
Prepositions rarely translate word-for-word between English and French. The fixed French expression for knocking on the door is frapper à la porte. It is easiest to memorize frapper à as a set phrase.