In this paper we study

-ary codes arising from modular curves

over GF

and some binary codes attached to them. All these codes have a polynomial construction and have "good" asymptotic parameters: for certain values of the parameters the

-ary codes with

are better than the Varshamov-Gilbert bound, and the binary codes are better than the Ziablov bounds.