Schizoaffective disorder is a mental condition that causes both a loss of contact with reality (psychosis) and mood problems.