To prosecute someone means to take legal action against them.
They were prosecuted for fishing in the river without a permit.
Example picture