Fish types
How large of a system
How many fish
Type of filtration
Ammonia and nitrite, nitrate levels
As already posted we need some basic information to trouble shoot the issue. The cause of an over night death of all fish is usually lack of available oxygen for one reason or another, or new tank syndrome.