Markets ended their five-week-long consolidation phase, buoyed by improving global cues, receding geopolitical risks, and a noticeable pickup in foreign institutional investor (FII) buying during the latter half of the week.