as a means of doing something
He expressed his love by way of writing her a poem.
彼は彼女に詩を書くことで愛を表現した。