When an attacker that you can see hits you with an attack, you can use your reaction to halve the attack's damage against you.
Uncanny Dodge
Raw data
{
"srd": true,
"name": "Uncanny Dodge",
"page": 93,
"level": 15,
"__prop": "subclassFeature",
"header": 2,
"source": "PHB",
"entries": [
"When an attacker that you can see hits you with an attack, you can use your reaction to halve the attack's damage against you."
],
"className": "Ranger",
"classSource": "PHB",
"subclassSource": "PHB",
"subclassShortName": "Hunter"
}