For the first six months of the year, Mercedes-Benz eclipsed BMW in luxury car sales as it moved towards recapturing the segment lead that it ceded to its Munich-based rival in 2005.

At the midway point of the year, BMW sales were up 5.8 percent to 986,557 units compared to the same period a year ago. Daimler AG’s Mercedes deliveries increased 12 percent to just over 1 million units, putting it ahead by a margin of just over 20,000 vehicles.

For the month of June, BMW sales were up 9.7 percent to 189,097 units, buoyed by strong demand for its 2-Series sedans and sport utility vehicles. By comparison, sales at Mercedes surged 11 percent to 188,444 units with the Stuttgart-based automaker also seeing increased demand for its SUVs.

If Mercedes is able to maintain its sales lead for the remainder of the year it will deliver four years early on its goal of taking top spot in the coveted luxury car segment.