(CNN) -- Bundesliga title chasers Hamburg are through to the last four of the UEFA Cup, where they will face compatriots Werder Bremen, after defeating 10-man Manchester City 4-3 on aggregate despite losing the second leg of their quarterfinal 2-1 on Thursday.
Paolo Guerrero (left) celebrates the goal that ensured Hamburg reached the semifinals of the UEFA Cup.
Hamburg took the lead in the 11th minute when Jonathan Pitroipa's cross from the right was converted by Paolo Guerrero from close range.
However, the home side levelled just five minutes later when Piotr Trochowski was adjudged to have handled Elano's shot in the area -- and the Brazilian duly fired home the resulting penalty.
Man-of-the-match Elano nearly put City ahead just before half-time with a thumping 25-yard free-kick that struck the crossbar.
But they did go ahead just five minutes into the second period when Felipe Caicedo rifled home a clever Stephen Ireland pass.
By now, City were dominant and just three minutes later another Elano free-kick rattled the woodwork, with goalkeeper Frank Rost beaten.
However, the tide turned again in the 75th minute when City captain Richard Dunne was sent off for a second bookable offense, and Hamburg were able to hold on for the remaining 15 minutes of the game.
The result means a German side will definitely contest next month's final in Istanbul after Brazilian playmaker Diego scored twice as Werder Bremen fought back in a thrilling match to draw 3-3 in Udinese for a 6-4 aggregate victory.
Werder had knocked out another Italian side, AC Milan, earlier in the competition -- but they fell behind in the 15th minute when Swiss midfielder Gokhan Inler fired home a spectacular effort.
Diego levelled just 13 minutes later but Fabio Quagliarella restored Udinese's lead in the 30th minute, beating the offside trap and lifting the ball over keeper Tim Wiese.
Quagliarella then made it 4-4 on aggregate by scoring again from the edge of the area in the 38th minute.
However, Diego -- who also scored twice in the first leg -- was on target again on the hour mark when he headed home after Hugo Almeida had struck the crossbar.
The Brazilian should have secured his hat-trick but his penalty was saved by Udinese goalkeeper Samir Handanovic, but a minute later Claudio Pizzaro made it 3-3 on the night to secure Werder's qualification.
There will also be a Ukrainian side in the final, after both Dynamo Kiev and Shakhtar Donetsk beat French opposition in their quarterfinal matches.
Kiev strolled to a 3-0 victory over Paris St Germain after a goalless first leg, but the result was aided by two errors from visiting goalkeeper Mickael Landreau.
Guinean international striker Ismael Bangoura opened the scoring after just four minutes and Kiev doubled their lead just 12 minutes later when Landreau made a mess of an attempted punch clear, only succeeding in sending the ball spinning behind him and into the net.
The home side wrapped things up in the second half when Landreau spilled an Olexandr Aliyev free-kick to allow Ognjen Vukojevic to net the rebound.
Kiev will now face rivals Shakhtar Donetsk, who were the only away side to win on the night, claiming a 2-1 victory in Marseille for a 4-1 aggregate succes.
Luis Fernandinho gave the visitors a 30th-minute lead but French international Hatem Ben Arfa replied for Marseille just before half-time. However, Luiz Adriano scored in the third minute of injury time to seal the win after Marseille missed numerous chances to get back in the game.