Let T be a competitive map on a rectangular region [Formula: see text], and assume T is C1 in a neighborhood of a fixed point [Formula: see text]. The main results of this paper give conditions on T that guarantee the existence of an invariant curve emanating from [Formula: see text] when both eigenvalues of the Jacobian of T at [Formula: see text] are nonzero and at least one of them has absolute value less than one, and establish that [Formula: see text] is an increasing curve that separates [Formula: see text] into invariant regions. The results apply to many hyperbolic and nonhyperbolic cases, and can be effectively used to determine basins of attraction of fixed points of competitive maps, or equivalently, of equilibria of competitive systems of difference equations. These results, known in hyperbolic case, have been used to determine the basins of attraction of hyperbolic equilibrium points and to establish certain global bifurcation results when switching from competitive coexistence to competitive exclusion. The emphasis in applications in this paper is on planar systems of difference equations with nonhyperbolic equilibria, where we establish a precise description of the basins of attraction of finite or infinite number of equilibrium points.