Hard stool in front and soft stool at the back is considered to be caused by untimely defecation, gastrointestinal dysfunction, enteritis, etc. Different situations need to be analyzed specifically. 1. Untimely defecation: If you do not defecate in time, the intestines will absorb the water in the stool, so the water absorbed in the beginning of the stool is more, and the water absorbed in the stool produced later is less, which will result in the phenomenon of hard stool in the front and soft stool at the back. There is no need to worry too much at this time, generally develop a good bowel habit, usually drink more water can be relieved. 2. Gastrointestinal dysfunction: Gastrointestinal dysfunction can lead to constipation, accompanied by bloating, abdominal pain and other symptoms. It is often caused by dietary habits and psychological factors. Constipation with gastrointestinal dysfunction will lead to hard stools in the front and soft stools in the back. 3. Enteritis: Enteritis causes hard stools in the front and soft stools in the back, usually caused by viral or bacterial infections. It is usually accompanied by nausea, abdominal pain and other symptoms. According to the different pathogens need to choose different drugs. Cephalosporin antibiotics (e.g. ceftriaxone) can be used for bacterial infections, and antiviral drugs (e.g. ribavirin) can be used for viral infections. If there is no significant improvement in the symptoms, it is necessary to complete the relevant examinations to determine the cause of the disease and take appropriate treatment measures as prescribed by the doctor.