Postoperative ileus is a side effect caused by the medications and painkillers used during surgery. These medications can slow down or even stop peristalsis for a time after the procedure.