Markets ended lower on Wednesday, with IT stocks dragging indices, while select counters like Adani Energy Solutions and Websol Energy System bucked the trend amid stock-specific triggers.