witnessed someone doing somethingFollows a verb phrase to mean that someone witnessed the action. The の nominalizes the preceding clause, and 目撃した means “witnessed” or “saw.”
JA: 私は友達が駅で電車に乗るのを目撃した。
EN: I witnessed my friend getting on the train at the station.