I lived in Osaka last year.

I lived in Osaka last year.

I have lived in Osaka for five years.

I have lived in Osaka for five years.

The simple past describes a finished event, while the present perfect connects the past with the present. The form is have/has + past participle (use has with he, she, or it).

UseClue wordsExample
continuation (have been doing something)for, sinceI have lived here for three years.
experience (have done something before)ever, never, once, twiceI have visited Kyoto twice.
completion/result (have already done something)already, just, yetI have just finished lunch.

For a question, put Have or Has before the subject (Have you ever been to Nara? — Yes, I have.). For a negative, use haven't or hasn't.

Do not use it with expressions that specify when, such as yesterday, last year, or when …?. Use the simple past then (× I have seen it yesterday.).