The wall was painted.

Literal

Wall [on-に] paint [subject-が] painted was.

ペンキが塗られた — passive of 塗る with ペンキ (paint, from Dutch 'pek') as the subject. The passive frames the event from the wall's perspective. ペンキ is interesting as one of Japanese's few Dutch-origin loanwords.