Disclosed is a temperature- and pH-sensitive hydrogel composed of a poly(amidoamine) oligomer only. The hydrogel is prepared in a simple manner and is readily released from the body. Further disclosed are a method for preparing the hydrogel and a drug carrier using the hydrogel.