Melee is in many roguelikes a matter of moving into the square of a monster to attack it with the wielded weapon. Melee attacks can in many roguelikes be dodged, blocked (if wielding a shield) and/or parried. Chances of success are typically based on either or both of stats and skills. If a melee attack hits its damage may be reduced by worn armor, depending on the combat system used.
Some roguelikes give the option of setting close combat tactics or stances, such as offensive or defensive combat.