The ecological changes that occur at the boundaries of different habitat types or the edges of fragmented patches.