Combat Rules

Darkness

Source
XPHB

An area of Darkness blocks normal vision entirely. A creature in Darkness is heavily obscured, unless it has Darkvision or another way to see without light.

Attack rolls against a creature that can't be seen have disadvantage, and that creature's attack rolls have advantage.

Casting a spell that requires seeing the target usually isn't possible in Darkness unless the caster can see through it in some way.