God used the prayers of Moses to stop the plagues. Moses was an intercessor. Intercessory prayer can be understood as someone who is in a right relationship with God praying before God on behalf of someone else who is not necessarily in a right relationship with God.