The dynastic turmoil caused by the death of Scotland's seven-year-old queen, Margaret, left Edward I of England with a perfect opportunity to assert his authority over Scotland as well. By 1295 it was clear that Edward was on a course for total subjugation of Scotland.

With France and England close to war, the alliance with France was a clear course to take.

More Info: en.wikipedia.org