As applied in 2014 rules, when a creature has two other allied creatures within 5ft of it, it is flanked. Allied creatures attacking a creature that is flanked will have advantage on attack rolls against it.