五段 -u → -areru · 一段 -る → -られる · する → される · 来る → 来られる
be ~ed (passive)
The doer is marked with に: 先生に褒められました — "I was praised by the teacher." Japanese also has the "suffering passive", which English lacks: 雨に降られました, literally "I was rained on" — something happened and it affected me badly. Even intransitive verbs can take it.
友達にケーキを食べられました。
ともだちに ケーキを たべられました。
My cake got eaten by my friend.
この寺は千年前に建てられました。
この てらは せんねんまえに たてられました。
This temple was built a thousand years ago.