Going to the capital (often Tokyo); moving or traveling to Tokyo (commonly for education, work, etc.).
大学進学のために来月上京する予定だ。
I plan to go to Tokyo next month to attend university.
田舎から上京して仕事を探すのは大変だと聞いた。
I've heard it's tough to move from the countryside to Tokyo and look for work.
彼は就職のために上京し、今は都内で暮らしている。
He moved to Tokyo for a job and now lives in the city.