Disclosed herein is a biodegradable nitric oxide-generating polymer comprising a nitric oxide-releasing N2O231 (NONOate) functional group. The polymer can be applied to various medical devices for the treatment of various diseases such as thrombosis and restenosis.