This can be a process, you will need to first determine where the water is coming from.
You will need to determine if your soil is draining properly.
You can do a test to see how long it takes for water to drain in your soil.
You may need to call in professional help to create drains in your yard to drain excess moisture.
These links have more information.