In the first game, the final confrontation is against Darth Malak, the former apprentice turned Sith Lord.
In the sequel, Knights of the Old Republic II: The Sith Lords, the last major opponent is Darth Traya — the title held by Kreia, whose role in the story is far more tangled than a simple villain reveal.