The suit was launched by Nebraska state senator Ernie Chambers, who said he might appeal against the ruling.
He sought a permanent injunction to prevent the "death, destruction and terrorisation" caused by God.
Mr Chambers sued God last year. He said God had threatened him and the people of Nebraska and had inflicted "widespread death, destruction and terrorisation of millions upon millions of the Earth's inhabitants".
"Since God knows everything," he reasoned, "God has notice of this lawsuit."