Nouns ending in -er are usually masculine.
Is enfer masculine or feminine?
l'enfer
The rule behind it
94.6% of -er nouns are masculine
In context
Nous avons détruit le paradis et l'enfer.
We've destroyed heaven and hell.
Sami est gay et il ira en enfer.
Sami is gay and he's going to hell.
Je préférerais vivre en enfer plutôt qu’aux États-Unis.
I'd rather live in hell than in the US.