Ab initio: from the beginning; from the start.
In law, ab initio may refer to the time a legal document becomes, well, legal.
In science, ab initio points to first principles, or basic laws.
Ab initio is a Latin phrase, meaning (you guessed it), from the beginning.
Example: Their friendship was doomed ab initio.