The opposition took power after the president was ousted amid allegations of corruption and nepotism .