We report on transport and magnetization measurements of the critical current density Jc in ErNi2B2C single crystals that show strongly enhanced vortex pinning at the Néel temperature TN and low applied fields. The height of the observed Jc peak decreases with increasing magnetic field in clear contrast with that of the peak effect found at the upper critical field. We also performed the first angular transport measurements of Jc ever conducted on this compound. They reveal the correlated nature of this pinning enhancement, which we attribute to the formation of antiphase boundaries at TN . 74.25.Sv, 74.25.Wx, 74.70.Dd Single quanta of magnetic flux enter a type II superconductor in the form of vortices when it is exposed to a magnetic field H. This is a big setback for applications, because when an electrical current J is applied, vortices move and energy is dissipated. This movement can be arrested by non-superconducting defects that pin vortices by lowering the system energy. The interaction between vortices and pinning centers has been studied extensively for decades, focused mainly on the so-called vortex core pinning (caused by the local suppression of the superconducting order parameter) [1,2]. Less explored is the interplay between vortices and magnetic media, which could offer pinning forces superior to those from core pinning [3][4][5][6]. A common difficulty of studying magnetic pinning is the inability of separating the magnetic and core contributions. It is, therefore, of great advantage to study systems where the magnetic transition takes place inside the superconducting phase, allowing one to compare the behavior with and without the magnetically ordered phase.There are a considerable number of materials in which to study the coexistence between superconductivity and ordered magnetic phases, such as the Chevrel-phases [7], CeCoIn 5 [8], and recently iron pnictides [9][10][11]. However, the rare earth-nickel-borocarbide family (RENi 2 B 2 C, where RE is a rare earth element) [12][13][14] has several advantages, namely a relatively high superconducting transition temperature T c and the tunability of the ratio between its magnetic and superconducting ordering temperatures, which can be changed by using different rare earth elements [15,16]. The readily available high-purity single crystals allow one to study the effects of magnetic pinning without any significant defect (non-magnetic) contribution [15].Among the borocarbide family the compound with RE = Er has a T c of 10.5 K and a Néel temperature T N of 6.0 K [17]. The occurrence of antiferromagnetism directly influences the superconducting properties, as seen in the upper critical field vs temperature curve, where H c2 (T ) is slightly suppressed just below T = T N for H c and has an inflection point for H ab [17]. This is a consequence of the local moments ordering in the antiferromagnetic phase, as was shown experimentally [17,18] and theoretically [19,20].In addition to the occurrence of antiferromagnetism, at T = T N a tetragonal to ortho...