What was barack obama last job?

His job just before he became president was as US Senator from Illinois.